home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / graffiti / panel.c < prev    next >
C/C++ Source or Header  |  1993-06-18  |  3KB  |  71 lines

  1. /* Form definition file generated with fdesign. */
  2.  
  3. #include "forms.h"
  4. #include "panel.h"
  5.  
  6. FL_FORM *MainForm;
  7.  
  8. FL_OBJECT
  9.         *QuitButton,
  10.         *DrawButton,
  11.         *UndoButton,
  12.         *VertexButton;
  13.  
  14. void create_form_MainForm()
  15. {
  16.   FL_OBJECT *obj;
  17.   MainForm = fl_bgn_form(FL_NO_BOX,280.0,180.0);
  18.   obj = fl_add_box(FL_UP_BOX,0.0,0.0,280.0,180.0,"");
  19.   QuitButton = obj = fl_add_button(FL_NORMAL_BUTTON,200.0,70.0,60.0,40.0,"Quit");
  20.     fl_set_object_lsize(obj,FL_LARGE_FONT);
  21.     fl_set_call_back(obj,QuitProc,0);
  22.   DrawButton = obj = fl_add_button(FL_NORMAL_BUTTON,20.0,70.0,150.0,40.0,"New Line");
  23.     fl_set_object_lsize(obj,FL_LARGE_FONT);
  24.     fl_set_call_back(obj,DrawButtonProc,0);
  25.   UndoButton = obj = fl_add_button(FL_NORMAL_BUTTON,20.0,20.0,90.0,40.0,"Undo");
  26.     fl_set_object_lsize(obj,FL_LARGE_FONT);
  27.     fl_set_call_back(obj,UndoButtonProc,0);
  28.   VertexButton = obj = fl_add_lightbutton(FL_PUSH_BUTTON,130.0,20.0,130.0,40.0,"Vertices Only");
  29.     fl_set_call_back(obj,VertexButtonProc,0);
  30.   obj = fl_add_text(FL_NORMAL_TEXT,0.0,110.0,280.0,50.0,"Click RIGHT mouse button on an\n object to draw lines.");
  31.     fl_set_object_lcol(obj,4);
  32.     fl_set_object_align(obj,FL_ALIGN_CENTER);
  33.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  34.   obj = fl_add_text(FL_NORMAL_TEXT,0.0,150.0,280.0,30.0,"GRAFFITI");
  35.     fl_set_object_align(obj,FL_ALIGN_CENTER);
  36.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  37.   fl_end_form();
  38. }
  39.  
  40. /*---------------------------------------*/
  41.  
  42. FL_FORM *PickInfoForm;
  43.  
  44. FL_OBJECT
  45.         *DoneButton;
  46.  
  47. void create_form_PickInfoForm()
  48. {
  49.   FL_OBJECT *obj;
  50.   PickInfoForm = fl_bgn_form(FL_NO_BOX,295.0,165.0);
  51.   obj = fl_add_box(FL_UP_BOX,0.0,0.0,295.0,165.0,"");
  52.   obj = fl_add_text(FL_NORMAL_TEXT,15.0,135.0,255.0,15.0,"The cursor is not pointing at an object.");
  53.   DoneButton = obj = fl_add_button(FL_NORMAL_BUTTON,220.0,10.0,60.0,40.0,"OK");
  54.     fl_set_object_lsize(obj,FL_LARGE_FONT);
  55.     fl_set_call_back(obj,DoneButtonProc,0);
  56.   obj = fl_add_text(FL_NORMAL_TEXT,5.0,115.0,280.0,15.0,"Click the right mouse button on any object");
  57.   obj = fl_add_text(FL_NORMAL_TEXT,10.0,95.0,270.0,15.0,"in the geomview window to draw.  If you");
  58.   obj = fl_add_text(FL_NORMAL_TEXT,5.0,75.0,270.0,15.0,"have no objects to draw on, you may load");
  59.   obj = fl_add_text(FL_NORMAL_TEXT,20.0,55.0,240.0,15.0,"one with the geomview Load button.");
  60.   fl_end_form();
  61. }
  62.  
  63. /*---------------------------------------*/
  64.  
  65. void create_the_forms()
  66. {
  67.   create_form_MainForm();
  68.   create_form_PickInfoForm();
  69. }
  70.  
  71.